package top.mypath.model.dto;

import com.alibaba.excel.read.metadata.ReadSheet;
import lombok.Data;

/**
 * excel Sheet表下拉选择框选择项
 * @author LiYalin
 */
@Data
public class SheetSelectItem {

    /**
     * 原始数据
     */
    private ReadSheet readSheet;

    /**
     * sheet表编号
     */
    private Integer sheetNo;

    /**
     * sheet表名称
     */
    private String sheetName;

    public SheetSelectItem(ReadSheet readSheet) {
        this.readSheet = readSheet;
        this.sheetNo=readSheet.getSheetNo();
        this.sheetName=readSheet.getSheetName();
    }

    @Override
    public String toString() {
        return this.getSheetName();
    }
}
